package com.watch.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.watch.system.model.entity.TCarConfig;
import com.watch.system.model.form.ConfigForm;
import com.watch.system.model.vo.CarConfigPageVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * 系统配置对象转换器
 *
 * @author gmli
 * @since 2024/2/26
 */
@Mapper(componentModel = "spring")
public interface CarConfigConverter {


    CarConfigPageVO toPageVo(CarConfigPageVO bo);

    Page<CarConfigPageVO> toPageVo(Page<CarConfigPageVO> bo);

    ConfigForm entity2Form(TCarConfig entity);

    @InheritInverseConfiguration(name = "entity2Form")
    TCarConfig form2Entity(ConfigForm entity);

}
